
//  SecondCheckTableViewCell.m
//  XJMCustomer
//  Created by Mr.hu on 2017/10/12.
//  Copyright © 2017年 Mr.hu. All rights reserved.

#import "SecondCheckTableViewCell.h"

@interface SecondCheckTableViewCell ()
/** 注视 **/
@property (strong, nonatomic) UICollectionViewFlowLayout * Flowlayout;

@end
@implementation SecondCheckTableViewCell


//- (void)layoutSubviews {
//    [super layoutSubviews];
//    [self addSubview:self.ImageCollectionView];
//}

//- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
//{
//    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
//        [self.ImageCollectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"friendcollectioncell"];
//        self.ImageCollectionView.dataSource = self;
//        self.ImageCollectionView.delegate = self;
//        self.ImageCollectionView.backgroundColor = [UIColor whiteColor];
//    }
//    return self;
//}

//- (UICollectionView *)ImageCollectionView {
//
//        _Flowlayout = [[UICollectionViewFlowLayout alloc]init];
//        _Flowlayout.scrollDirection = UICollectionViewScrollDirectionVertical;
//        self.ImageCollectionView = [[UICollectionView alloc]initWithFrame:[UIScreen mainScreen].bounds collectionViewLayout:self.Flowlayout];
//    return self.ImageCollectionView;
//}

/*
- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        self.ImageCollectionView = [[UICollectionView alloc]initWithFrame:[UIScreen mainScreen].bounds collectionViewLayout:self.Flowlayout];
        self.ImageCollectionView .delegate = self;
        self.ImageCollectionView .dataSource = self;
        self.ImageCollectionView .backgroundColor = [UIColor greenColor];
        self.ImageCollectionView .alwaysBounceHorizontal = YES;
        self.ImageCollectionView .showsHorizontalScrollIndicator = NO;
        self.ImageCollectionView .bounces = NO;
        self.ImageCollectionView .userInteractionEnabled = YES;
        
        [self.ImageCollectionView  registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"friendcollectioncell"];
        [self addSubview:self.ImageCollectionView ];
    }
    return self;
}
*/

/*
#pragma mark - CollectionDatasource数据源
-(NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
    return 1;
}

-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return 10;
}

-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    UICollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"friendcollectioncell" forIndexPath:indexPath];
    
    if (cell==nil) {
        cell = [[UICollectionViewCell alloc]initWithFrame:CGRectZero];
    }
    
        UIButton * imagepict = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 57, 57)];
        [imagepict setImage:[UIImage imageNamed:@"1"] forState:UIControlStateNormal];
        [imagepict addTarget:self action:@selector(onclickedfangdaOnclicked:) forControlEvents:UIControlEventTouchUpInside];
        [cell addSubview:imagepict];
    
    return cell;
}

-(void)onclickedfangdaOnclicked:(UIButton *)sender
{
    
}

#pragma mark - CollectionDelegate
-(CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section
{
    return 10;
}

-(CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section
{
    return 10;
}

-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return CGSizeMake(64, 64);
}

-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
 
}
 
*/

@end
